<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8" />
    <title>文档搜索及相似度比较</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            min-height: 100vh;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: start; /* 改为顶部对齐 */
            padding-top: 200px;   /* 手动控制距离顶部高度，模拟 1/3 屏幕 */
            box-sizing: border-box;
        }

        .container {
            max-width: 600px;
            width: 90%;
            text-align: center;
        }

        h1 {
            margin-bottom: 25px; /* 标题与按钮间距稍大一点 */
        }

        .button-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            column-gap: 45px;
            row-gap: 20px;
            margin-bottom: 20px;
        }

        .nav-button {
            display: block;
            width: 100%;
            padding: 15px 20px;
            font-size: 16px;
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            text-decoration: none;
            transition: background-color 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .nav-button:hover {
            background-color: #0056b3;
        }

        @media (max-width: 600px) {
            .button-grid {
                grid-template-columns: 1fr;
            }
        }
</style>

</head>
<body>

<div class="container">
    <h1>文档搜索及相似度比较</h1>
    <div class="button-grid">
        <a href="/search" class="nav-button">文本搜索</a>
        <a href="/similarity" class="nav-button">文档相似度对比</a>
        <a href="/duplicate-check" class="nav-button">文档查重</a>
        <a href="/cluster" class="nav-button">聚类分析</a>
    </div>
</div>

</body>
</html>
